import service from '@/utils/request'

export const createDwsTb = (data) => {
  return service({
    url: '/dwsTb/createDwsTb',
    method: 'post',
    data
  })
}

export const deleteDwsTb = (data) => {
  return service({
    url: '/dwsTb/deleteDwsTb',
    method: 'delete',
    data
  })
}

export const deleteDwsTbByIds = (data) => {
  return service({
    url: '/dwsTb/deleteDwsTbByIds',
    method: 'delete',
    data
  })
}

export const updateDwsTb = (data) => {
  return service({
    url: '/dwsTb/updateDwsTb',
    method: 'put',
    data
  })
}

export const findDwsTb = (params) => {
  return service({
    url: '/dwsTb/findDwsTb',
    method: 'get',
    params
  })
}

export const getDwsTbList = (params) => {
  return service({
    url: '/dwsTb/getDwsTbList',
    method: 'get',
    params
  })
}

export const getAllDwsTbs = (params) => {
  return service({
    url: '/dwsTb/getAllDwsTbs',
    method: 'get',
    params
  })
}

export const getDwsTb = (data) => {
  return service({
    url: '/dwsTb/getDwsTb',
    method: 'post',
    data
  })
}


export const initDwsTb = () => {
  return service({
    url: '/dwsTb/initDwsTb',
    method: 'get',
  })
}
